package com.spi.soconversion.orders.conversion;

public enum FurnitureCategory {
				
			F_501("501"),
			F_502("502"),
			F_504("504"),
			F_505("505"),
			F_507("507"),
			F_508("508"),
			F_509("509"),
			F_510("510"),
			F_514("514"),
			F_517("517"),
			F_518("518"),
			F_519("519"),
			F_520("520"),
			F_521("521");
			
			private String beanProperty;
			
			private FurnitureCategory(String beanProperty) {
				this.beanProperty= beanProperty;
			}

			public String getBeanProperty() {
				return beanProperty;
			}
			
			public static FurnitureCategory getFurnitureCategory(String code) {
				for (FurnitureCategory FC : FurnitureCategory.values()) {
					if (FC.getBeanProperty().equals(code)) {
						return FC;
					}
				}
				return null;
			}
}
